﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MODEL;

namespace Service
{
    public class ValveControlService_Design : IValveControlService
    {
        public Task<IEnumerable<ValveControl>> QueryControlValues(ValveControlQueryCriteria userId = null)
        {
            return Task.Run(() => {
                return new List<ValveControl> {
                    new ValveControl{
                        Id = "1",
                        Operator = "admin",
                        AddTime = DateTime.Now,
                        Exec_Time = DateTime.Now,
                        Msg_Id = 1,
                        Valve_No = 1,
                    }
                }.AsEnumerable();
            });
        }
        public void InsertControlValues(List<ValveControl> valveControlList)
        {
            throw new NotImplementedException();
        }
    }
}
